package com.example.demo.repository;

import com.example.demo.bean.ClassesBean;
import com.example.demo.bean.GroupBean;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;
import java.util.Map;

/**
 * @author zhangbiao
 * @date 2020/6/25 11:00
 * @desc 描述
 */
public interface ClassesRepository extends JpaRepository<ClassesBean, String> {

    public void deleteByObjId(String obj_id);

    @Query(value = "SELECT * FROM t_classes",
            nativeQuery = true)
    public List<Map<String, Object>> findClass();
}
